#include "Data/Point2DData.hpp"

Point2DData::Point2DData()
    : Point2D()
{
}

Point2DData::Point2DData(double x, double y)
    : Point2D(x, y)
{
}

Point2DData::Point2DData(const Point2DData &p)
    : Point2D(p)
{
}

void Point2DData::setX(double x)
{
    ::Point2D::setX(x);
    updateNotification();
}

void Point2DData::setY(double y)
{
    ::Point2D::setY(y);
    updateNotification();
}

int Point2DData::load(std::istream& in)
{
    in >> m_x >> m_y;
    return 0;
}

int Point2DData::save(std::ostream& out) const
{
    out << m_x << "\t" << m_y;
    return 0;
}
